Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
11 лет сервису WM.mk.ua - WebMoney Exchange in Nikolaev
Расскажи о нас


Пользовательские движки шаблонизации

02.10.2009

Пример подключения движка XML/XSLT:

Сначала регистрируем движок:

global $arCustomTemplateEngines;
$arCustomTemplateEngines = array(
   "xslt" => array(
      "templateExt" => array("xsl"),
      "function" => "XSLTEngine"
   ),
);

Функция инициализации параметров движка:

function CreateXMLFromArray($xDoc, $xNode, $ar)
{
   foreach($ar as $key=>$val)
   {
      if(!is_string($key) || strlen($key)<=0)
         $key = "value";

      $xElement = $xDoc->createElement($key);
      if(is_array($val))
      {
         CreateXMLFromArray($xDoc, $xElement, $val);
      }
      else
      {
         $xElement->appendChild($xDoc->createTextNode(iconv( SITE_CHARSET, "utf-8", $val)));
      }
      $xNode->appendChild($xElement);
   }
   return $xNode;
}

Функция подключения движка:

function XSLTEngine($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template)
{
   $arResult["PARAMS"] = array(
      "templateFolder" => $templateFolder,
      "parentTemplateFolder" => $parentTemplateFolder,
      "arParams" => $arParams,
      "arLangMessages" => $arLangMessages
   );

   $xDoc = new DOMDocument("1.0", SITE_CHARSET);
   $xRoot = $xDoc->createElement('result');
   CreateXMLFromArray($xDoc, $xRoot, $arResult);
   $xDoc->appendChild($xRoot);

   $xXsl = new DOMDocument();
   $xXsl->load( $_SERVER["DOCUMENT_ROOT"].$templateFile );

   $xProc = new XSLTProcessor;
   $xProc->importStyleSheet($xXsl);

   echo $xProc->transformToXML($xDoc);
}


Страница 3 - 3 из 3
Начало | Пред. | 1 2 3 | След. | Конец

Количество показов: 83455826
Рейтинг:  3.3

Возврат к списку

(Голосов: 1, Рейтинг: 3.3)

Материалы по теме:


Страницы: Пред. 1 ... 2965 2966 2967 2968 2969 ... 4099 След.
0  
DemonFrage
На сайте https://t.me/skupkalekarst воспользуйтесь возможностью реализовать лекарство, которое не пригодилось, осталось после терапии невостребованным. На этом канале указан телефон центра выкупа, чтобы вы смогли быстро сориентироваться и не потерять в деньгах. Если и у вас остались лекарства с хорошим сроком годности, то вы сможете их продать. Регулярно в этой группе выкладываются новости, ценная информация, которая поможет вам сориентироваться, почерпнуть что-то новое, нужное. Все лекарства выкупаются по хорошей, выгодной для вас стоимости.
Имя Цитировать 0  
0  
DonaldNow
darkmarket link  https://github.com/darkwebmarketslinks/darkwebmarkets  darknet markets links
Имя Цитировать 0  
0  
ChrisNeaky
Имя Цитировать 0  
0  
DavidShumb
Visit Your URL  
Lumi crypto
Имя Цитировать 0  
0  
Timmysaigh
Имя Цитировать 0  
0  
Geraldjor
Имя Цитировать 0  
0  
JesseelemS
Автомат Ballon — идеальный СЃРїРѕСЃРѕР± расслабиться.: balloon game - balloon казино играть
Имя Цитировать 0  
0  
WilliamIRunisp
darknet markets url  dark web markets
Имя Цитировать 0  
0  
Steel_Byte
Памятка для работы с https://time-invest154.ru финансами.
Имя Цитировать 0  
0  
AlvinLiect
hop over to this web-site https://web-lumiwallet.com
Имя Цитировать 0  
0  
Geraldsmurb
you can check here https://web-lumiwallet.com/
Имя Цитировать 0  
0  
Aviator - abl
The Future of Aviator Games

As the demand for the Aviator game continues to rise, its creators are introducing new features. From incorporating advanced mechanics to hosting community challenges, the Aviator official website keeps the game fresh.

For players looking for the latest updates, staying connected is essential. As Aviator games expand, their player numbers will likely continue to grow, solidifying the Aviator betting game as a leader in the gaming industry.

The aviator login is not just a game of chance; it’s a dynamic experience that captures attention with its thrilling unpredictability. Whether you’re interested in the best Aviator game, searching for tips on how to play and win, or simply seeking entertainment, this digital sensation has something for everyone.

As you immerse yourself in the Aviator online game, remember the significance of staying within limits. While the adrenaline rush of watching the plane soar higher is unmatched, a measured approach will boost your enjoyment. The real Aviator game is about finding the perfect moment to cash out, and it offers a sense of accomplishment every time you win a round.

As the Aviator game captures more players worldwide, it’s clear that this groundbreaking game is here to stay. Whether you’re playing for leisure or profit, the Aviator crash game promises moments of thrill.

So, ready to take off? Visit the Aviator official website - https://aviator-gh.netlify.app/, start your adventure, and discover why this game is beloved worldwide.

The Aviator game stands out in the world of digital entertainment due to its unique mechanics and captivating appeal. From its straightforward setup to its dynamic gameplay, it’s evident why the game has captured the hearts of players among serious bettors.

One of the most appealing aspects of the Aviator game is its accessibility. Whether you’re exploring the Aviator game online, you’ll find that the game is perfectly suited for mobile and desktop users. This ease of access makes it suitable for players who enjoy gaming on the go.
Имя Цитировать 0  
0  
WilliamIRunisp
dark market 2025  dark web market
Имя Цитировать 0  
0  
TimmyDouts
Имя Цитировать 0  
0  
Pingunisp
darknet drug store  https://github.com/darknetmarkets2025/darknetmarketlinks  darknet markets links
Имя Цитировать 0  
0  
DavidGlork
use this link  
Lumi wallet
Имя Цитировать 0  
0  
Geraldjor
browse around these guys https://web-lumiwallet.com
Имя Цитировать 0  
0  
Davidkar
useful reference Lumi online
Имя Цитировать 0  
0  
Thomaspaymn
Очень внимательное обслуживание, приятно заказывать.  
доставка цветов томск на дом
Имя Цитировать 0  
0  
MarkNORah
darknet markets url  best darknet markets
Имя Цитировать 0  
0  
MarkNORah
bitcoin dark web  darkmarket url
Имя Цитировать 0  
0  
ThomasHeada
Current medication trends. Patient pill facts.
buy lasix usa
Drug facts here. Drug facts provided.
Имя Цитировать 0  
0  
DavidGlork
look what i found Lumi wallet
Имя Цитировать 0  
0  
TimmyUnmah
Имя Цитировать 0  
0  
Link - flego
Virtual gambling platforms have changed the casino gaming industry, providing an exceptional degree of convenience and range that physical venues don’t provide. In recent years, a large audience around the world have embraced the adventure of online gaming due to its availability, exciting features, and constantly growing range of offerings.

If you’re a beginner with the world of internet-based gaming or are looking to discover trusted platforms, why not join our dynamic online hub? It’s a place where enthusiasts exchange experiences, guiding you to enhance your virtual play. Join the experience and learn more now: http://able010.able-company.com/bbs/board.php?bo_table=free&wr_id=381281

One of the strongest selling points of digital gambling sites is the vast diversity of gaming experiences at your disposal. Whether you like spinning vintage slots, diving into story-driven thematic slots, or playing smart in card and board games like Blackjack, digital casinos offer endless opportunities. Plenty of operators also feature live casino options, letting you to communicate with actual dealers and gaming peers, all while enjoying the lifelike ambiance of a real casino right at home.

Beyond variety, digital casino services are known for seamless entry.
Имя Цитировать 0  
Страницы: Пред. 1 ... 2965 2966 2967 2968 2969 ... 4099 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

1QH.net - Unique Quality Hosting.network
liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved